/// FinanceUserUpdateDto
class FinanceUserUpdateDto {
  /// 用户ID
  final int userId;
  /// 用户名
  final String userName;
  /// 邮箱
  final String email;
  /// 财务客服的报价权限，1-有，0-无
  final int? quotePermission;
  /// 财务客服处理提现订单的的最小金额，单位：奈拉，整数
  final int orderAmountRangeMin;
  /// 财务客服处理提现订单的的最大金额，单位：奈拉，整数
  final int orderAmountRangeMax;

  FinanceUserUpdateDto({
    required this.userId,
    required this.userName,
    required this.email,
    this.quotePermission,
    required this.orderAmountRangeMin,
    required this.orderAmountRangeMax,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userId'] = userId;
    data['userName'] = userName;
    data['email'] = email;
    if (quotePermission != null) data['quotePermission'] = quotePermission;
    data['orderAmountRangeMin'] = orderAmountRangeMin;
    data['orderAmountRangeMax'] = orderAmountRangeMax;
    return data;
  }

  factory FinanceUserUpdateDto.fromJson(Map<String, dynamic> json) {
    return FinanceUserUpdateDto(
      userId: json['userId'],
      userName: json['userName'],
      email: json['email'],
      quotePermission: json['quotePermission'],
      orderAmountRangeMin: json['orderAmountRangeMin'],
      orderAmountRangeMax: json['orderAmountRangeMax'],
    );
  }
}